package cn.wolfcode.ssm.mapper;

import cn.wolfcode.ssm.domain.Permission;
import cn.wolfcode.ssm.qo.QueryObject;
import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);


    List<Permission> selectForResult(QueryObject qo);

    //查询出数据库所有的权限表达式
    List<String> selectAllExpression();

    //根据员工id查询出它所有的权限
    List<String> selectByEmpId(Long id);
}